﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <title>@ViewBag.SysTitle</title>
    <base id="pageBase" href='http://@Request.Url.Authority/' />
    <link href="@Url.Content("~/Content/styles/base.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/styles/common.css")" rel="stylesheet" type="text/css" />
    <link href="/Content/UITheme/redmond/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="/Content/themes/default/style.css" rel="stylesheet" type="text/css" />
    <link href="/Content/themes/css/core.css" rel="stylesheet" type="text/css" />
    <link href="/Content/styles/jquery.jqgrid.css" rel="stylesheet" type="text/css" />
    <!--[if IE]>
    <link href="/Content/themes/css/ieHack.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    <!--[if lte IE 8]>
    <script src="@Url.Content("/Scripts/DWZ/speedup.js")" type="text/javascript"></script>
    <![endif]-->
    <script src="@Url.Content("~/Scripts/jQuery/jquery-1.4.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jQuery/jquery.validate.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jQuery/jquery.bgiframe.js")" type="text/javascript"></script>
    <script src="/Scripts/jQuery/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <link href="/Content/styles/layout.css" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("/Scripts/jQuery/jquery.layout-latest.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/DWZ/dwz.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/DWZ/dwz.regional.zh.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/DWZ/dwz.stable.js")" type="text/javascript"></script>
    <script src="@Url.Content("/Scripts/jQuery/jqGrid.locale-cn.js")" type="text/javascript"></script>
    <script src="@Url.Content("/Scripts/jQuery/jquery.jqGrid.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("/Scripts/jQuery/jquery.jqGrid.extend.js")" type="text/javascript"></script>
    <link rel="stylesheet" href="/Content/zTreeStyle/zTreeStyle.css" type="text/css" />
    <link rel="stylesheet" href="/Content/zTreeStyle/zTreeIcons.css" type="text/css" />
    <script type="text/javascript" src="/Content/zTreeStyle/jquery.ztree-2.6.min.js"></script>
    <script src="/Scripts/PDFObject-master/pdfobject.min.js" type="text/javascript"></script>
    <script src="/Scripts/Common/report.common.js" type="text/javascript"></script>
    <script src="/Scripts/Common/common.js" type="text/javascript"></script>

    <script type="text/javascript" src="/Content/xheditor/xheditor-1.2.2.min.js"></script>
    <script type="text/javascript" src="/Content/xheditor/xheditor_lang/zh-cn.js"></script>

    <script type="text/javascript">
        $(document).ready(function () {
            $.ajaxSetup({ cache: false }); //清除缓存
        });
    </script>
    <script src="@Url.Content("/Scripts/DatePicker/WdatePicker.js")" type="text/javascript"  defer="defer"></script>
    <script src="@Url.Content("/Scripts/Common/moment.js")" type="text/javascript" ></script>
    <script type="text/javascript">
        var globe_projectId = "@ViewBag.CurProId";
        $(function () {
            DWZ.init("dwz.frag.xml", {
                //		loginUrl:"loginsub.html", loginTitle:"登录",	// 弹出登录对话框
                //loginUrl: "/", // 跳到登录页面
                statusCode: { ok: 200, error: 300, timeout: 301 }, //【可选】
                //pageInfo: { pageNum: "pageNum", numPerPage: "numPerPage", orderField: "orderField", orderDirection: "orderDirection" }, //【可选】
                debug: false, // 调试模式 【true|false】
                callback: function () {
                    initEnv();
                    $("#themeList").theme({ themeBase: "themes" });
                    //如果是管理员 就不用选择项目了 ThinkWang 2013-6-4 10:57:23

                    $("#currentProject").show();
                    //如果当前项目为空，就弹出窗口，让用户选择当前项目
                    if (globe_projectId == "0" && "@ViewBag.IsSA" == "False") {
                        var title = "选择项目";
                        var url = "/Home/ProjectList";
                        var rel = "rel_Home_Index_selectPro";
                        var options = {};
                        options.width = 600;
                        options.height = 450;
                        options.max = false;
                        options.mask = true;
                        options.maxable = false;
                        options.minable = false;
                        options.resizable = true;
                        options.drawable = true;
                        options.close = function () {
                            if (globe_projectId == "0") {
                                alertMsg.confirm("确定不选择项目，退出登录？", {
                                    okCall: function () {
                                        window.location.href = "/Login/LogOff";
                                    },
                                    cancelCall: function () {
                                        return false;
                                    }
                                });
                            } else
                                return true;
                        };

                        $.pdialog.open(url, rel, title, options);
                    }
                }
            });
        });

        function RefreashMain() {
            //刷新首页
            $("#mainContent_Home_Index").load("/Home/RefreashMain");
        }
        $(function () {
            $(".headerMenu>li").hoverClass("hover");
        });
    </script>
    @RenderSection("header")
</head>
<body scroll="no">
    <div id="layout">
        <div id="header">
        <div class="headerContent">
            <div class="headerNav">
                <a class="logo" href="/Home" title="@ViewBag.SysTitle"></a>
                <ul class="headerMenu">
                   @* <li><a href="javascript:;"><span id="spProjectName_Home">@ViewBag.CurProName</span></a>
                        <ul class="hideList">
                            <li><a href="/Home/ProjectList" target="dialog" id="currentProject" width="600" height="450"
                                mask="true" title="选择项目">切换项目</a> <a href="/Files/计量支付管理办法（终稿）.doc" title="点击下载">计量支付管理方法</a>
                      
                        </ul>
                        
                    </li>*@
                    <li><a href="javascript:;"><span>@ViewBag.UserName</span></a>
                        <ul class="hideList">
                            <li id="myname">
                                <h4>@ViewBag.UserName</h4>
                                <h5>@ViewBag.DutyName</h5>
                            </li>
                            <li><a href="/Permission/User/ChangePwd" target="dialog" width="400" height="250"
                                mask="true" title="修改密码">修改密码</a> <a href="/Login/LogOff">退出</a> </li>
                        </ul>
                    </li>
                  @*  <li><a href="javascript:;"><span>设置</span></a>
                        <ul class="hideList">
                            <li><a href=" /BaseInfo/QusetionFeedBack/Index" target="navTab" mask="true" title="问题反馈">
                                问题反馈</a> <a href="javascript">帮助</a> <a id="v10_container" href="/help/VersionUpdateCon"
                                    target="dialog" width="600" height="400" mask="true" title="版本说明">版本说明<em id="v10">@ViewBag.VersionNumber</em></a>
                            </li>
                        </ul>
                    </li>*@
                </ul>
            </div>
           
            <!--横向nav-->
            @{Html.RenderAction("HeaderNav", "Home");}
           </div>
        </div>

        <!--左侧菜单列表-->
        <div id="leftside">
            <div id="sidebar_s">
                <div class="collapse">
                    <div class="toggleCollapse">
                        <div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="sidebar">
                <div class="toggleCollapse">
                    <!-- id="toggleCollapse"-->
                    <h2>
                        主菜单</h2>
                    <div>
                        收缩</div>
                </div>
                @{Html.RenderAction("LeftNav", "Home");}
            </div>
        </div>
        <div id="container">
            <div id="navTab" class="tabsPage">
                <div class="tabsPageHeader">
                    <div class="tabsPageHeaderContent">
                        <!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
                        <ul class="navTab-tab">
                            <li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">首页</span></span></a></li>
                        </ul>
                    </div>
                    <div class="tabsLeft">
                        left</div>
                    <!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
                    <div class="tabsRight">
                        right</div>
                    <!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
                    <div class="tabsMore">
                        more</div>
                </div>
                <ul class="tabsMoreList">
                    <li><a>首页</a></li>
                </ul>
                <div id="tabContent" class="navTab-panel tabsPageContent">
                    @RenderBody()
                </div>
            </div>
        </div>
    </div>
</body>
</html>
